//
//  ViewController.swift
//  YKCarouselScrollView
//
//  Created by YK on 16/2/15.
//  Copyright © 2016年 YK. All rights reserved.
//

import UIKit

class ViewController: UIViewController,YKCarouselScrollViewDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let  scrollView = YKCarouselScrollView(frame: CGRectMake(0, 0, self.view.frame.size.width, 200))
        //网络图片
        //scrollView.pictures = ["http://pic2.ooopic.com/11/79/98/31bOOOPICb1_1024.jpg","http://img.61gequ.com/allimg/2011-4/201142614314278502.jpg"];
        
        //本地图片
        scrollView.pictures = ["0.jpg","1.jpg","2.jpg"]
        scrollView.isNetworkPic = false
        scrollView.delegate = self
        self.view.addSubview(scrollView)
    }

    
    func tapAtIndex(index: Int) {
        print("第\(index)张图片被点击")
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

